Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Duration validation issues

#15

The PropertyValue::Duration#valid_string? is incorrect, it rejects valid duration strings and accepts others.

For example "+P1H" is an invalid duration string, it should be "+PT1H" a valid duration string is:

an optional + or - followed by a mandatory P character then one of

  a number of days \d+D optionally followed by a time duration

or

  a time duration T followed by on or more hour minute or second parts

or

  a number of weeks \d+W

Reported by Rick DeNatale · July 6th, 2009 @ 12:17 PM

State: resolved
Milestone: 0.7.1
Assigned to: Rick DeNatale Rick DeNatale

Activity

  1. Rick DeNatale
    Rick DeNatale
    • Milestone set to 0.7.1
    • State changed from new to resolved
    • Assigned user set to Rick DeNatale

    Fixed the regex and specs which had invalid duration times.

    July 6th, 2009 @ 12:19 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.